
<div class="clear"></div>
<div class="idx"><img src="__THEME__/public/statics/imgs/ad.jpg" width="100%" height="90" /></div>
<div class="clear"></div>

<!--循环输出当前栏目下面的子栏目及其内容-->
{cmstag:category table='class' where="pid={$catid}" order='ordid asc,id' loop=0}
<div class="newsthree">
    <div class="h1">
        <h4 class="l">[category:name]</h4>
        <div class="r">
            <a href="[category:id fun='catUrl(@me)']">更多>></a>
		</div>
    </div>
	<div class="clear"></div>
	<div class="newsthree_l">
		<ul>
        	<!--循环输出当前栏目下面的数据，我们按缩略图排序，因为第一行要输出一个图片-->
			{asp i=0}
			{cmstag:news table='article' field='id,thumb,title,url,intro' where="classid in( [category:id fun='child_ids(@me,true)'] )" order='len(thumb) desc,update_time desc' loop=8}
            {if i=0}
            <li class="pic"><img src="[news:thumb]" width="108" height="82" align="left" /><span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,25)']</a></span><div class="into">[news:intro fun='ab.c.cutstr(@me,70)']</div></li>
            {else}
            <li class="nopic"><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,44)']</a></li>
            {/if}
			{$i++}
            {/cmstag:news}
		</ul>
	</div>
	<div class="newsthree_c">
		<ul>
        	<!--循环输出当前栏目下面的数据，我们按最新排序-->
			{cmstag:news table='article' field='id,title,url,update_time' where="classid in( [category:id fun='child_ids(@me,true)'] )" order='update_time desc' loop=12}
            <li><span class="date">[news:update_time fun='sDate(@me)']</span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,40)']</a></li>
            {/cmstag:news}
		</ul>	
	</div>
	<div class="newsthree_r">
		<div class="tit"><h4 class="l">阅读排行</h4></div>
		<div class="clear"></div>
		<ul>
		<!--循环输出当前栏目下面的数据，我们按点击排序-->
		{asp i=0}
		{cmstag:news table='article' field='id,title,url' where="classid in( [category:id fun='child_ids(@me,true)'] )" order='hits' loop=10}
        <li><span {if i<3}class="one"{/if}>{$i+1}</span><a href="[news:id fun='getArcUrl(@me)']" title="[news:title]">[news:title fun='ab.c.cutstr(@me,33)']</a></li>
		{$i++}
        {/cmstag:news}
		</ul>
	</div>
</div>
<div class="clear"></div>
{/cmstag:category}
<div class="idx"><img src="__THEME__/public/statics/imgs/ad.jpg" width="100%" height="90" /></div>
<div class="clear"></div>
